package Filter;

import logging.Record;

public class TermFilter implements FilterStrategy {
        
        private String msgFilter;
        
        public TermFilter(String msg) {
            this.msgFilter=msg;
        }


        public boolean apply(Record record) {           
                return (record.getMessageFormatted().indexOf(this.msgFilter) >= 0);
        }


}